package com.chinasoft.tw.service.chensizhou;

import com.chinasoft.tw.pojo.Info;
import com.chinasoft.tw.service.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class csz implements TrueWord{
    String name;
    List<String> wordList=new ArrayList<>();
    Random  random=new Random();
    public csz(){
        this.name="陈思宙";
        wordList.add("今天去打篮球！！！");
        wordList.add("今天去游泳！！！");
    }
    @Override
    public Info getTrueWord() {
        int index = random.nextInt(wordList.size());
        Info info = new Info(name, wordList.get(index));
        return info;
    }
}
